package com.example.yiqiuser.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 诸葛龙辰
 */ //添加lombok注解
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role {

    private Integer roleId;
    private String roleName;
    private String roleKey;
    private Integer roleSort;
    private String dataScope;
    private String status;
    private String delFlag;
    private String createBy;

    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    private String updateBy;

    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;

    private String remark;

    public Role(String roleName, String status) {
        this.roleName = roleName;
        this.status = status;
    }
    //(`role_id`, `role_name`, `role_key`, `role_sort`, `data_scope`, `status`,
    // `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`)

}
